package cn.bgs.mapper;

import cn.bgs.pageUtil.PageRequest;
import cn.bgs.pojo.VehicleArea;
import cn.bgs.vo.AreaVo;
import cn.bgs.vo.CommunityVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 车位区域表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface VehicleAreaMapper extends BaseMapper<VehicleArea> {


    List<VehicleArea> carAreaList();

    int carDelete(Integer id);

    int pcAddCar(VehicleArea vca);

    List<VehicleArea> selectAreaInfo(AreaVo areaVo);

    int updateAreaInfo(VehicleArea vehicleArea);

    boolean addAreaInfo(VehicleArea vehicleArea);

    int deleteCarInfo(Integer vehicleAreaId);

    List<VehicleArea> info(CommunityVo communityVo);

    List<?> selectCarInfo(PageRequest request);
}
